package com.houtai.dao;


import com.houtai.bean.TdCompany;
import com.houtai.bean.dto.company.CompanyListDto;
import com.houtai.bean.vo.company.CompanyList;
import com.houtai.bean.vo.company.TdCompanyJobDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TdCompanyDao {
    /**
     * @Purpose   查找企业列表
     * @param     CompanyListDto
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    List<CompanyList>
     */
    List<CompanyList> findCompanyList(CompanyListDto CompanyListDto);

    /**
     * @Purpose:    添加企业资料
     * @param:      tdCompany
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void insertTdCompany(TdCompany tdCompany);

    /**
     * @Purpose:    查找企业
     * @param:      info_id
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/26
     * @return:     TdCompany
     */
    TdCompany findTdCompanyByUserId(@Param("user_id") int user_id);

    /**
     * @Purpose:    查找企业
     * @param:      info_id
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/26
     * @return:     TdCompany
     */
    TdCompany findTdCompanyById(@Param("company_id") int company_id);

    /**
     * @Purpose:    查找企业
     * @param:      info_id
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/26
     * @return:     TdCompanyJobDetail
     */
    TdCompanyJobDetail findTdTdCompanyJobDetailById(@Param("company_id") int company_id);
    /**
     * @Purpose:    更新企业资料
     * @param:      tdCompany
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/26
     * @return:     void
     */
    void updateTdCompany(TdCompany tdCompany);
    /**
     * @Purpose:    重新企业资料
     * @param:      tdCompany
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/26
     * @return:     void
     */
    void resubmitTdCompany(TdCompany tdCompany);
    /**
     * @Purpose:    更新企业资料
     * @param:      tdCompany
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/26
     * @return:     void
     */
    void updateTdCompanyJob(TdCompany tdCompany);
}
